import sys

fileName = sys.argv[1]
start = int(sys.argv[2])
end = int(sys.argv[3])

count = 0
faltantes = []
f = open(fileName,'r')
for line in f.readlines():
    if 'EXTINF' in line:
        cleanLine = line.split(',', maxsplit=1)[1]
        count = 1 + count
        print(cleanLine)
        print(count)
        if int(cleanLine[start:end])>count:
            faltantes.append(count)
            while(True):
                count = 1 + count
                if int(cleanLine[start:end])>count:
                    faltantes.append(count)
                else:
                    break
f.close()
print(faltantes)